// ##
#include "ForkBox.h"
#include "../runtime/AutomaticBoxCreatorRegistration.h"

namespace jm4bbx {

	REGISTER_BOX_TO_RUNTIME_BASE(Fork, ForkBox);

	const groupType ForkBox::INPUT_GROUP = groupType(0);
	const groupType ForkBox::OUTPUT_GROUP_BEGIN = groupType(1);

	const  columnType ForkBox::INPUT_COLUMN = columnType(0);
	const columnType ForkBox::OUTPUT_COLUMN = columnType(0);

	const inType ForkBox::IN_ARC = inType(0);
	const outType ForkBox::OUT_ARC_BEGIN = outType(0);	

	const char* ForkBox::FORK_FACTOR_PARAM_NAME = "forkFactor";
	const char* ForkBox::ALL_DATA_PARAM_NAME= "allData";
	outType ForkBox::getOutArc(int index) {
		return outType(OUT_ARC_BEGIN + index);
	}

	groupType ForkBox::getOutGroup(int index) {
		return groupType(OUTPUT_GROUP_BEGIN + index);
	}

}   //  namespace jm4bbx
